package main.bots;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

public class ProxyGrabber {
	
	
	public static void grabProxies() {
		try {
			URL proxyUrl = new URL("http://sockslist.net/");
			URLConnection conn = proxyUrl.openConnection();
			InputStream input = conn.getInputStream();
			InputStreamReader reader = new InputStreamReader(input);
			BufferedReader rea = new BufferedReader(reader);
			String src = "";
			while(rea.readLine() != null) {
				src += rea.readLine();
				//rea.
			}
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
